<script setup lang='ts'>
import { onMounted } from 'vue';
import { useRoute } from 'vue-router';

onMounted(() => {
       const route = useRoute()
       // alert(JSON.stringify(route.query))
       alert(route.params.id)
})
</script>

<template>
       <div>主页</div>
</template>

<style scoped></style>